package cn.school.test;

import cn.school.dao.SubjectMapper;
import cn.school.entity.Subject;
import cn.school.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author oldliu
 * @since 1.0
 */
public class DelDemo {
    public static void main(String[] args) {
        SqlSession session = MybatisUtil.get(false);

        SubjectMapper mapper = session.getMapper(SubjectMapper.class);
        int del = mapper.del(54);
        System.out.println("删除了"+del+"条");
        MybatisUtil.close(session);
    }
}
